const formatTime = date => {
    const year = date.getFullYear()
    const month = date.getMonth() + 1
    const day = date.getDate() - 3
    return [year, month, day].join('-')
}

const formatTime2 = date => {
    const year = date.getFullYear()
    const month = date.getMonth() + 1
    const day = date.getDate()
    return [year, month, day].join('-')
}

module.exports = {
  formatTime,
  formatTime2
}